<view class="circle">
  <view class="page__hd  margin-top ">
    <view class="cu-bar ">
      <view class="action sub-title">
        <text class="text-xxl text-bold text-white">{{ss}}</text>
        <text class="bg-white"></text>
        <!-- last-child选择器-->
      </view>
    </view>
    <navigator url="/pages/core/set/today" open-type="redirect" hover-class="none">
      <swiper autoplay="true" interval="3000" duration="300" circular="true" vertical="true" style="height:80rpx">
        <block qq:for="{{titleList}}">
          <swiper-item>
            <text class="top_title text-center text-ccut"
              >{{item}}
              <!-- <text>{{''+Today.theDay}}</text> -->
            </text>
          </swiper-item>
        </block>
      </swiper>
    </navigator>

    <view class="weui-panel border-shadow">
      <view class="weui-panel__bd">
        <block wx:if="{{xh==='233'}}">
          <view class="weui-media-box">
            <button class="weui-btn" type="primary" plain="true" bindtap="setxh">绑定学号，获取每日课程信息</button>
          </view>
        </block>
        <block wx:else>
          <view class="weui-media-box ">
            <block wx:if="{{course.length===0}}">
              <block>
                <view class="weui-media-box_text">今天没课哦，休息一下吧</view>
              </block>
            </block>
            <block wx:else>
              <navigator target="switchTab" url="/pages/core/table/index" bindtap="Tocour" hover-class="none">
                <view class="cu-list menu card-menu margin-top-xl my-iconcolor margin-bottom-xl shadow-shop bg-white text-black my-radius sm-border kc_item" style=" width: 100%!important;">
                  <view wx:for="{{course}}" class="cu-item" wx:for-item="course" wx:for-index="index" wx:key="index">
                    <view class="content padding-tb-sm">
                      <view class="cu-capsule radius">
                        <view class="cu-tag text-df line-blue">{{time[(course.startTime-1)/2]}}</view>
                        <view class="cu-tag text-df bg-blue">{{course.classroomName}}</view>
                      </view>
                      <!-- <view class="text-gray text-sm"> <text class="cuIcon-infofill margin-right-xs"></text> 重启小程序生效！👌</view> -->
                    </view>
                    <view class="action">
                      <text class="text-df text-bold">{{course.courseName}}</text>
                    </view>
                  </view>
                </view>
              </navigator>
            </block>
          </view>
        </block>
      </view>
    </view>
  </view>
  <view class="page__bd">
    <block wx:if="{{help=='false'}}">
      <view style="padding:5rpx 40rpx;"><button class="weui-btn" style="font-size:26rpx;" type="default" plain="true" bindtap="toHelp">初次见面，不如看下使用帮助？</button></view>
    </block>
    <view class="weui-panel">
      <view class="weui-grids">
        <view class="weui-grid" hover-class="weui-grid_active" bindtap="Tocour">
          <image class="weui-grid__icon" src="/static/img/tabbar/kechengbiao.png"></image>
          <view class="weui-grid__label">课表详情</view>
        </view>
        <navigator class="weui-grid" url="/pages/tips/tips" hover-class="weui-grid_active">
          <image class="weui-grid__icon" src="/static/img/fenxi.png"></image>
          <view class="weui-grid__label">校园Tips</view>
        </navigator>
        <navigator class="weui-grid" url="/pages/map/index" hover-class="weui-grid_active">
          <image class="weui-grid__icon" src="/static/img/yiwen.png"></image>
          <view class="weui-grid__label">使用帮助</view>
        </navigator>
        <navigator class="weui-grid" url="/pages/core/calendar/calendar" hover-class="weui-grid_active">
          <image class="weui-grid__icon" src="/static/img/tabbar/shijian.png"></image>
          <view class="weui-grid__label">工程校历</view>
        </navigator>
      </view>
    </view>
    <block wx:for="{{newsList}}" wx:for-item="info" wx:for-index="index" wx:key="index">
      <block>
        <view class="weui-panel">
          <view class="weui-panel__hd"> <view class="newsbot"></view><text>{{info.title}}</text> </view>
          <block wx:if="{{info.content}}">
            <block>
              <view class="weui-panel__bd weui-media-box weui-media-box_text weui-media-box__desc"> <rich-text nodes="{{info.content}}"></rich-text></view>
            </block>
          </block>
        </view>
      </block>
    </block>
    <view class="weui-footer weui-center">- 么扯了，没有了:) -</view>
  </view>
</view>
